package com.baba.bracelet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author wulongbo
 * @version 1.0
 * @date 2020/6/13 17:26
 * @description
 */
@Data
@TableName("tbl_family")//@TableName中的值对应着表名
@ApiModel(value = "名族信息")
public class FamilyEntity {

    /**
     * 名族主键id
     */
    @ApiModelProperty(value = "主键id", name = "id")
    @TableId(type = IdType.AUTO)
    private Integer familyId;

    /**
     * 名族种类名称
     */
    @ApiModelProperty(value = "名族种类名称", name = "familyName")
    private String familyName;
}
